/*
这个脚本是布局数据的脚本
*/
const vm=new Vue({
    data: {
        page:{},
        title:"欢迎使用 ERP",
        pageinfo:{
            height:window.innerHeight,
            width:window.innerWidth,
            leftside:200,
            leftsidestate:true,

        },
        navactive:0,
        nav:[
            {name:"系统中心",url:"",flag:1,icon:"layui-icon-console",child:[
                {name:"工作台",url:""},
            ]},
            {name:"系统设置",url:"",flag:1,icon:"layui-icon-engine",child:[
                {name:"组织机构 ",url:""},
                {name:"用户设置",url:""},
                {name:"用户组设置",url:""},
                {name:"角色设置",url:""},
                {name:"角色组设置",url:""},
                {name:"资源设置",url:""},
                {name:"菜单设置",url:""},
                {name:"用户,用户组关联设置",url:""},
                {name:"角色,角色组关联设置",url:""},
                {name:"角色与菜单关联设置",url:""},
                {name:"数据字典",url:""},
                {name:"工作台设置",url:""},
        
            ]},
            {name:"基础资料",url:"",flag:1,icon:"layui-icon-form",child:[
                {name:"客户中心",url:""},
                {name:"供应商中心",url:""},
                {name:"邮件",url:""},
                {name:"产品",url:""},
                {name:"文件",url:""},
                {name:"消息",url:""}
            ]},
            {name:"出口业务",url:"",flag:1,icon:"layui-icon-release",child:[
                {name:"报价",url:""},
                {name:"外销",url:""},
                {name:"任务(备货合同)",url:""},
                {name:"采购",url:""},
                {name:"出运计划",url:""},
                {name:"出运明细",url:""},
                {name:"报关",url:""},
                {name:"结汇",url:""},
                {name:"开票",url:""},
                {name:"询盘",url:""},
                {name:"验货",url:""},
            ]},
            {name:"资金管理",url:"",flag:1,icon:"layui-icon-rmb",child:[
                {name:"收款",url:""},
                {name:"付款",url:""},
                {name:"费用",url:""},
                {name:"退税",url:""}
            ]},
            {name:"仓库管理",url:"",flag:1,icon:"layui-icon-component",child:[
                {name:"采购入库",url:""},
                {name:"备货入库",url:""},
                {name:"入库费用登记",url:""},
                {name:"销售出库",url:""},
                {name:"其它出库",url:""},
                {name:"初始化",url:""},
                {name:"调拨",url:""},
                {name:"盘点",url:""},
                {name:"库存",url:""},
           
            ]}
        ],
        subnav:[],




    },
    computed: {
    },
    methods: {
        // 跳转函数 url：地址  tar:_blank/_self 新窗口打开，本窗口打开
        href(url,tar="_self"){
            window.open(url,tar)
        },
        getjson(url,http){ //ajax 接口
            if(http){
              return  http.get(url,{emulateJSON:true}).then(res=>{
                    return res.body
                },err=>{ msg:err})
            }
        },
    },
    watch: {
    },
    beforeCreate() {
    },
    created() {
    },
    beforeMount() {
    },
    mounted() {
    },
    beforeUpdate() {
    },
    updated() {
    },
    beforeDestroy() {
    },
    destroyed() {
    },
    components: {

    },
});
(function () {
    if(document.getElementById("LAY_app")){
        vm.$mount("#LAY_app");
    }
})()



